package com.lcx.movie.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Description
 * @version 1.0
 * @author lcx
 * @date 2025/2/9 11:25
 */
@TableName(value = "schedule")
@Component
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Schedule {
    /**
     * 场次编号
     */
    @TableId(value = "schedule_id", type = IdType.INPUT)
    private Long scheduleId;

    /**
     * 所属放映厅编号
     */
    @TableField(value = "hall_id")
    private Long hallId;

    /**
     * 所属电影编号
     */
    @TableField(value = "movie_id")
    private Long movieId;

    /**
     * 电影放映时间
     */
    @TableField(value = "schedule_startTime")
    private String scheduleStartTime;


    /**
     * 场次状态 默认1 1：上映中 0：下架
     */
    @TableField(value = "schedule_state")
    private Integer scheduleState;
    /**
     * 电影结束放映时间
     */
    @TableField(value = "schedule_endTime")
    private String scheduleEndTime;
    @TableField(value = "schedulePrice")
    private Integer schedulePrice;
    private Hall scheduleHall; //所属放映厅对象
    private Movie scheduleMovie;//放映的电影
    private List<Orderinfo> orderList;//所有的订单集合;

    /**
     * 影院名称
     */
    @TableField(value = "cinema_name")
    private String cinemaName;

    /**
     * 影院地址
     */
    @TableField(value = "cinema_address")
    private String cinemaAddress;

    /**
     * 放映厅名称
     */
    @TableField(value = "hall_name")
    private String hallName;

    /**
     * 电影名称（中文）
     */
    @TableField(value = "movie_cn_name")
    private String movieCnName;


}